<?xml version="1.0" encoding="UTF-8"?>
<mappings xmlns="http://dozer.sourceforge.net" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://dozer.sourceforge.net
          http://dozer.sourceforge.net/schema/beanmapping.xsd">

    <mapping>
        <class-a>${cfg.package_name}.bean.${entity}</class-a>
        <class-b>${cfg.package_name}.dto.${entity}Dto</class-b>

    <#list cfg.columnList as column>
        <#--<#if column.columnType4JavaEncap=='Date'>
        <field custom-converter="com.rt.easyjava.common.dozer.converter.Date4UtilDateConverter" custom-converter-param="<#if column.dataTransfer=='date'>yyyy-MM-dd<#else>yyyy-MM-dd HH:mm:ss</#if>">
            <a>${column.propertyName}</a>
            <b>${column.propertyName}</b>
        </field>
        <#elseif column.dataTransfer=='fen2yuan' && column.columnType4JavaEncap=='Long'>
        <field custom-converter="com.rt.easyjava.common.dozer.converter.FenAndYuan4LongConverter">
            <a>${column.propertyName}</a>
            <b>${column.propertyName}</b>
        </field>
        <#elseif column.dataTransfer=='fen2yuan' && column.columnType4JavaEncap=='Integer'>
        <field custom-converter="com.rt.easyjava.common.dozer.converter.FenAndYuan4IntConverter">
            <a>${column.propertyName}</a>
            <b>${column.propertyName}</b>
        </field>-->
        <#if column.dataResource==1>
            <#if column.optionsSql?exists && column.optionsSql!='' >
            <field custom-converter="com.rt.easyjava.common.dozer.converter.<#if column.columnType?exists && column.columnType=='select-multi'>EnumMultiConverter<#else>EnumConverter</#if>" custom-converter-param="com.rt.easyjava.common.enums.${column.enumName}">
                <a>${column.propertyName}</a>
                <b>${column.propertyName}</b>
            </field>
            <#else>
            <field custom-converter="com.rt.easyjava.common.dozer.converter.<#if column.columnType?exists && column.columnType=='select-multi'>EnumMultiConverter<#else>EnumConverter</#if>" custom-converter-param="com.rt.easyjava.common.enums.${column.propertyNameFirstWordUpper}">
                <a>${column.propertyName}</a>
                <b>${column.propertyName}</b>
            </field>
            </#if>
        </#if>
    </#list>

    </mapping>

</mappings>
